package com.estudy.exception;

import lombok.Getter;

/**
 * @author laisir
 * @date 2024/8/27
 */
@Getter
public class CustomerException extends RuntimeException {
    private final Integer code;

    public CustomerException(String message) {
        super(message);
        this.code = 500;
    }

    public CustomerException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
